$projectPath = Get-Location

Get-ChildItem -Path $projectPath -Recurse -Include *.cs, *.csproj, *.sln | ForEach-Object {
    $content = Get-Content -Path $_.FullName -Raw
    $utf8BOM = New-Object System.Text.UTF8Encoding($true)
    [System.IO.File]::WriteAllText($_.FullName, $content, $utf8BOM)
}
